package com.orkhonsoft.tengrinshar.chat.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orkhonsoft.tengrinshar.chat.entity.ChatRecordEntity;
import com.orkhonsoft.tengrinshar.chat.mapper.ChatRecordMapper;



@Service("chatRecordService")
public class ChatRecordService {
	@Autowired
	private ChatRecordMapper chatRecordmapper;
	
	public ChatRecordEntity queryObject(Long id){
		return chatRecordmapper.queryObject(id);
	}
	
	public List<ChatRecordEntity> queryList(Map<String, Object> map){
		return chatRecordmapper.queryList(map);
	}
	
	public int queryTotal(){
		return chatRecordmapper.queryTotal();
	}
	
	public void save(ChatRecordEntity chatRecord){
		chatRecordmapper.save(chatRecord);
	}
	
	public void update(ChatRecordEntity chatRecord){
		chatRecordmapper.update(chatRecord);
	}
	
	public void delete(Long id){
		chatRecordmapper.delete(id);
	}
	
	public void deleteBatch(Long[] ids){
		chatRecordmapper.deleteBatch(ids);
	}
	public List<ChatRecordEntity> getChatRecordEntitys(Object id)//查看推送消息
	{
		return chatRecordmapper.getChatRecordEntitys(id);
	}
	public void BantchUpdate(List<ChatRecordEntity> list){
		chatRecordmapper.BantchUpdate(list);
	}
}
